<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class History extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'historys';
    protected $fillable = [
            'user_id',
            'video_id',
            'traces_id',
        ];

    public function episode()
    {
        return $this->hasOne(Episode::class,'id','traces_id');
    }

}
